Manages the themes within the component. More...
Public Member Functions | |
Theme * | addTheme (const char *name) |
void | setActiveTheme (Theme *theme) |
Theme * | getTheme (const char *name) const |
Theme * | getActiveTheme () const |
Manages the themes within the component.
A Manager is always responsible for the resources allocated using it.
Theme* nkWinUi::ThemeManager::addTheme | ( | const char * | name | ) |
Declares a theme.
name | The name to attach to the theme. |
void nkWinUi::ThemeManager::setActiveTheme | ( | Theme * | theme | ) |
Sets the active theme to use within the component.
theme | The theme to use when drawing the windows in the component. |
Theme* nkWinUi::ThemeManager::getTheme | ( | const char * | name | ) | const |
Request for a theme attached to a name.
name | The name of the theme wanted. |
Theme* nkWinUi::ThemeManager::getActiveTheme | ( | ) | const |